<div class="p_tab" th:classappend="${product.isCrossSaleProducts()?'':'p_tab_no_recommend'}">
    <div id="customer-reviews-container">
        <blc:ratings itemId="${product.id}" />
        <div th:if="${ratingSummary}" th:object="${ratingSummary}" >
            <span class="title">客户评价</span>
            <div id="community-rating-container">
                <div class="total-reviews">
                    (
                    <span th:text="*{numberOfReviews}"></span>
                    <span th:if="*{numberOfReviews} == 1">条评论</span>
                    <span th:if="*{numberOfReviews} >1">条评论</span> )
                </div>
            </div>
            <div class="clearfix"></div>
            <blc:ratings itemId="${product.id}" />
            <div th:if="${currentCustomerReview}" th:object="${currentCustomerReview}" class="customer-reviews current-customer-review">
                <h4>您的评论</h4>
                <p class="voting-summary" th:if="*{notHelpfulCount()} + *{helpfulCount()} >
                0">
                    <span th:text="*{helpfulCount()}">9</span> of
                    <span th:text="*{notHelpfulCount()} + *{helpfulCount()}">10</span> 有价值评论
                </p>
                <blc:form class="customer-rating" th:attr="data-customer-rating=*{ratingDetail.rating}">
                    <input type="radio" class="star" />
                    <input type="radio" class="star" />
                    <input type="radio" class="star" />
                    <input type="radio" class="star" />
                    <input type="radio" class="star" />
                </blc:form>
                <span class="reviewer-info">
                于
                <span th:text="*{#dates.format(reviewSubmittedDate, 'MMMM d, yyyy')}">1-2-2010</span>
                </span>
                <div class="clearfix"></div>
                <blockquote th:if="!*{#strings.isEmpty(reviewText)}" th:text="'&quot;' + *{reviewText} + '&quot;'">Review Text</blockquote>
            </div>
            <div class="helpful-reviews">
                <h4>客户评论</h4>
                <ul class="customer-reviews">
                    <li th:each="review, iterStat : *{reviews}" th:object="${review}" th:if="${iterStat.count} lt 4">
                        <p class="voting-summary" th:if="*{notHelpfulCount()} + *{helpfulCount()} > 0">
                            <span th:text="*{helpfulCount()}">9</span> /
                            <span th:text="*{notHelpfulCount()} + *{helpfulCount()}">10</span> 有价值评论
                        </p>
                        <blc:form class="customer-rating" th:attr="data-customer-rating=*{ratingDetail.rating}">
                            <input type="radio" class="star" />
                            <input type="radio" class="star" />
                            <input type="radio" class="star" />
                            <input type="radio" class="star" />
                            <input type="radio" class="star" />
                        </blc:form>
                        <span class="reviewer-info">
                        来自
                        <span class="penname"
                                    th:text="${review.customer.firstName}">John，</span> 于
                        <span th:text="*{#dates.format(reviewSubmittedDate, 'MMMM d, yyyy')}">
                            1-2-2010
                                        评论
                        </span>
                        </span>
                        <div class="clearfix"></div>
                        <blockquote th:if="!*{#strings.isEmpty(reviewText)}" th:text="'&quot;' + *{reviewText} + '&quot;'">评论内容</blockquote>
                    </li>
                </ul>
            </div>
        </div>
        <div th:unless="${customer.anonymous}" class="com_now">
            <div th:if="${ratingSummary}">
                <a th:unless="${currentCustomerReview}" class="create-review" th:href="@{'/reviews/product/' + ${product.id}}">快来撰写评论吧！</a>
            </div>
            <div th:unless="${ratingSummary}">
                <a th:href="@{'/reviews/product/' + ${product.id}}" class="create-review">为该商品撰写第一条评论！</a>
            </div>
        </div>
        <div th:if="${customer.anonymous}" class="com_now">
            <a th:if="${ratingSummary}" href="#" th:href="@{/login}" class="small dark account">登录并撰写评论</a>
            <a th:unless="${ratingSummary}" th:href="@{/login}" class="account">登录并撰写第一条评论！</a>
        </div>
    </div>
</div>
